﻿#include<stdio.h>
#include "IApplication.hpp"
using namespace My;

namespace My {
	extern IApplication* g_pApp;
}


int main(int argc, char** argv) {
	int ret;
	if ((ret = g_pApp->Initialize()) != 0)
	{
		printf("App Initialize failed, will exit now.\n");
		return 1;
	}
	while (!g_pApp->IsQuit()) {
		printf("App Tick.\n");
		g_pApp->Tick();
	}
	g_pApp->Finalize();
	return 1;
}